package DesignPattern.Structure.Decorator;

// 装饰者类（抽象装饰者角色）
public abstract class Garnish extends FastFood {
    private FastFood food;

    public FastFood getFood() {
        return food;
    }

    public void setFood(FastFood food) {
        this.food = food;
    }

    public Garnish(FastFood food) {
        this.food = food;
    }

    public Garnish(FastFood food, Float price, String desc) {
        super(price, desc);
        this.food = food;
    }
}
